package com.dxq.oa.utils;

import com.auth0.jwt.interfaces.Claim;
import com.auth0.jwt.interfaces.Payload;

import java.net.URL;

public class Test {

    public static void main(String[] args) {

        Payload info =
                JWTUtils.getInfo("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiMSIsImlkIjoiMSIsInB3ZCI6IjEyMzQ1NiIsImV4cCI6MTYzODY4Mjk3MSwiYWNjb3VudCI6ImR1eHVlcWlhbmciLCJ1c2VybmFtZSI6IuadnOmbquW8uiJ9.MYDK2Psvt5f4cmjRc2hq4TfY7PWdNEoCbEQVOVfd7Yo");
        Claim pwd = info.getClaim("pwd");
        String s = pwd.asString();
        System.out.println(s);
    }
}
